//
//  UIImage+Extension.m
//  Weibo
//
//  Created by 李灵斌 on 15-1-30.
//  Copyright (c) 2015年 apple. All rights reserved.
//

#import "UIImage+Extension.h"

@implementation UIImage (Extension)

+ (UIImage *)stretchableImageWithImage:(NSString *)str{
    
    UIImage *image = [UIImage imageNamed:str];
    NSInteger width = image.size.width * 0.5;
    NSInteger height = image.size.height * 0.5;
    image = [image stretchableImageWithLeftCapWidth:width topCapHeight:height];
    return image;
}

//+ (UIImage *)stretchableImageHeigthWithImage:(NSString *)str{
//    
//    UIImage *image = [UIImage imageNamed:str];
////    NSInteger width = image.size.width * 0.5;
//    NSInteger height = image.size.height * 0.5;
//    image = [image stretchableImageWithLeftCapWidth: topCapHeight:height];
//    return image;
//}


@end
